//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * buycarModel
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.buycar.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "BUYCAR")
public class Buycar implements java.io.Serializable {

	/**
	 * 
	 */
	private Long id ;
	/**
	 * 
	 */
	private String adddate ;
	/**
	 * 
	 */
	private Long commodityId ;
	/**
	 * 
	 */
	private Long userId ;
	/**
	 * 
	 */
	private String status ;

/** default constructor */
	public Buycar() {
	}

	/** minimal constructor */
   public Buycar(Long id) {
             this.id = id;
                              	
 } 
	

    /**
	 * 获取
	 * @return
	 */
    @Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, scale = 0)
	public Long getId() {
		return this.id;
	}
	
	/**
	 * 设置
	 * @param id
	 */	
	public void setId(Long id) {
		this.id = id;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "addDate", length = 19)
	public String getAdddate() {
		return adddate;
	}
	
	/**
	 * 设置
	 * @param adddate
	 */	
	public void setAdddate(String adddate) {
		this.adddate = adddate;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "commodity_id", length = 32)
	public Long getCommodityId() {
		return commodityId;
	}
	
	/**
	 * 设置
	 * @param commodityId
	 */	
	public void setCommodityId(Long commodityId) {
		this.commodityId = commodityId;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "user_id", length = 32)
	public Long getUserId() {
		return userId;
	}
	
	/**
	 * 设置
	 * @param userId
	 */	
	public void setUserId(Long userId) {
		this.userId = userId;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "status", length = 3)
	public String getStatus() {
		return status;
	}
	
	/**
	 * 设置
	 * @param status
	 */	
	public void setStatus(String status) {
		this.status = status;
	}
}